package com.ruoyi.app.controller;

import com.ruoyi.common.utils.ApiResult;
import com.ruoyi.sms.entity.ShopVO;
import com.ruoyi.sms.service.IShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "商家列表")
@RestController
@RequestMapping("/shop")
public class ShopController {
    @Autowired
    private IShopService shopService;

    @ApiOperation("商家列表")
    @RequestMapping(value = "/selectShopList", method = RequestMethod.GET)
    public ApiResult<List<ShopVO>> selectShopList() {
        return ApiResult.success(shopService.selectShop(null));
    }

}
